#ifndef _MAC_WND_H
#define _MAC_WND_H



#define MH_ERROR_NONE           0
#define MH_ERROR_JZ1            1
#define MH_ERROR_JZ2            2
#define MH_ERROR_JZ3            3
#define MH_ERROR_JZ4            4
#define MH_ERROR_JD1            5
#define MH_ERROR_JD2            6
#define MH_ERROR_CAN            7
#define MH_ERROR_QDBGZ          8
#define MH_ERROR_QDBSJ          9
#define MH_ERROR_DUALRAM        10
#define MH_ERROR_GLL            11
#define MH_ERROR_JZJD           12
#define MH_ERROR_WAIT           13
#define MH_ERROR_INVALIDNUM     14
#define MH_ERROR_GLLCLOSED      15
#define MH_ERROR_GLLOPENED      16
#define MH_ERROR_SINK_FRONT     17
#define MH_ERROR_SINK_BACK      18
#define MH_ERROR_YARN           19
#define MH_ERROR_SJDCT          20
#define MH_ERROR_XZQ            21
#define MH_ERROR_DUMUF1         22
#define MH_ERROR_DUMUF2         23
#define MH_ERROR_DUMUB1         24
#define MH_ERROR_DUMUB2         25
#define MH_ERROR_SINKF          26
#define MH_ERROR_SINKB          27
#define MH_ERROR_DUMUF3         28
#define MH_ERROR_DUMUF4         29
#define MH_ERROR_DUMUB3         30
#define MH_ERROR_DUMUB4         31
#define MH_ERROR_EXTPIECE       32
#define MH_ERROR_RESETDONE      33
#define MH_ERROR_NOSINK         34
#define MH_ERROR_CAMF_MOTOR 	35//前三角电机动作错误
#define MH_ERROR_CAMB_MOTOR 	36//后三角电机动作错误
#define MH_ERROR_RAB_SWITCH 	37
#define MH_ERROR_NET_SEND       38      /* 网络发送失败 */
#define MH_ERROR_NET_RECV       39      /* 网络发送失败 */
#define MH_ERROR_CAMF1          40
#define MH_ERROR_CAMB1          41
#define MH_ERROR_CAMF2          42
#define MH_ERROR_CAMB2          43

#define MH_ERROR_RAB_OPEN 	    46//拉布打开失败
#define MH_ERROR_RAB_CLOSE 	    47//拉布合上失败
#define MH_ERROR_YARN_CLIP      48//2个系统的纱嘴冲突
#define MH_ERROR_SINKFR         48
#define MH_ERROR_SINKBR         49
#define MH_ERROR_DUMUF1R        50
#define MH_ERROR_DUMUF2R        51
#define MH_ERROR_DUMUB1R        52
#define MH_ERROR_DUMUB2R        53

#define MH_ERROR_CAMFL          54
#define MH_ERROR_CAMBL          55
#define MH_ERROR_CAMFR          56
#define MH_ERROR_CAMBR          57

#define MH_ERROR_LYCM1          70      /* 左纱嘴电机1 */
#define MH_ERROR_LYCM2          71
#define MH_ERROR_LYCM3          72
#define MH_ERROR_LYCM4          73
#define MH_ERROR_RYCM1          74
#define MH_ERROR_RYCM2          75
#define MH_ERROR_RYCM3          76
#define MH_ERROR_RYCM4          77

#define MH_ERROR_DUMUF5         78
#define MH_ERROR_DUMUF6         79
#define MH_ERROR_DUMUF7         80
#define MH_ERROR_DUMUF8         81
#define MH_ERROR_DUMUB5         82
#define MH_ERROR_DUMUB6         83
#define MH_ERROR_DUMUB7         84
#define MH_ERROR_DUMUB8         85
#define MH_ERROR_RBSINK         86
#define MH_ERROR_RFSINK         87

#define MH_ERROR_FSINK1         88
#define MH_ERROR_BSINK1         89
#define MH_ERROR_FSINK2         90
#define MH_ERROR_BSINK2         91


void MacRestore(HWND hWnd);
HWND CreateProgressMacWindow(HWND hHosting);
void GetGroupAndObejct(HWND hWnd, int *group, int *to);
 int MacCycleButton(HWND hWnd, int nID);
HWND CreateMacWindow(HWND hHosting);
void KeypaneOnKeyDown(HWND hWnd, uint key);

#endif
